package com.xzs.thinking.api.model;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author : Iris.Xiao
 * @date : 2017/11/15 11:00
 * @description :
 */
public class ParamBean implements Serializable {
    @NotNull
    private String id;

    @NotNull // 不允许为空
    @Size(min = 1, max = 20) // ⻓度或⼤⼩范围
    private String name;
    @Min(18) //
    @Max(100)
    private int age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


//    private int change;
//
//    public int getChange() {
//        return change;
//    }
//
//    public void setChange(int change) {
//        this.change = change;
//    }
}
